using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace emp.Model.SysManage
{
   
    public class TreeInfo
    {
        public int iNode_ID;
        public int iParent_Node_ID;
        public string sNode_Name;
        public string sNode_Desc;
        public string sIsDel;
        public string sIsLeaf;
        public string sLink;
        private string sNode_Type;
        private int iquest_id;
 
        /// <summary>
        /// Default constructor
        /// </summary>
        public TreeInfo()
        {
        }

        public TreeInfo(int Node_ID, int Parent_Node_ID, string Node_Name, string Node_Desc)
            : this(Node_ID, Parent_Node_ID, Node_Name, Node_Desc, "0", "0", "")
        {
            /*this.iNode_ID = Node_ID;
            this.iParent_Node_ID = Parent_Node_ID;
            this.sNode_Name = Node_Name;
            this.sNode_Desc = Node_Desc;*/
        }

        public TreeInfo(int Parent_Node_ID, string Node_Name, string Node_Desc)
            : this(0, Parent_Node_ID, Node_Name, Node_Desc, "0","0","")
        {
            /*this.iParent_Node_ID = Parent_Node_ID;
            this.sNode_Name = Node_Name;
            this.sNode_Desc = Node_Desc;*/
        }
        public TreeInfo(int Node_ID, int Parent_Node_ID, string Node_Name, string Node_Desc, string IsDel)
            : this(Node_ID, Parent_Node_ID, Node_Name, Node_Desc, "0", "0", "")
        {
        }

        public TreeInfo(int Node_ID, int Parent_Node_ID, string Node_Name, string Node_Desc, string IsDel,string IsLeaf,string Link)
        {
            this.iNode_ID = Node_ID;
            this.iParent_Node_ID = Parent_Node_ID;
            this.sNode_Name = Node_Name;
            this.sNode_Desc = Node_Desc;
            this.sIsDel = IsDel;
            this.sIsLeaf = IsLeaf;
            //this.sLink = "/qst" + Link;
            this.sLink = ConfigurationSettings.AppSettings["vPath"] + Link;
        }

        public int Node_ID
        {
            get { return iNode_ID; }
            //set {iNode_ID=value;}
        }

        public int Parent_Node_ID
        {
            get { return iParent_Node_ID; }
            //set{iParent_Node_ID=value;}
        }
        public string Node_Name
        {
            get { return sNode_Name; }
            //set{sNode_Name=value;}
		}
        public string Node_Desc
        {
            get { return sNode_Desc; }
            //set{sNode_Desc=value;}
		}

        public string IsDel
        {
            get { return sIsDel; }
            //set{sIsDel=value;}
		}
        public string IsLeaf
        {
            get { return sIsLeaf; }
            //set {sIsLeaf=value;}
        }
        public string Link
        {
            get { return sLink; }
            //set {sLink=value;}
        }

        public string Node_Type
        {
            get { return sNode_Type; }
            set { sNode_Type = value; }
        }

        public int quest_id
        {
            get { return iquest_id; }
            set { iquest_id = value; } 
        }

        //public string sNode_Type;
        //public int iquest_id;

    
    }
}
